// by Xeno
#define THIS_FILE "fn_adminspectate.sqf"
#include "x_setup.sqf"

xr_phd_invulnerable = true;
KEGs_ShownSides =
#ifdef __TT__
	if (GVAR(side_player) == opfor) then {[opfor, blufor]} else {[blufor, opfor]};
#else
	[GVAR(side_player)];
#endif
KEGs_can_exit_spectator = true;
KEGs_playable_only = true;
KEGs_no_butterfly_mode = true;
if (!isNil QGVAR(a_d_cur_unit) && {!isNull GVAR(a_d_cur_unit)} ) then {
	KEGs_target = GVAR(a_d_cur_unit);
};

[player, objNull, "x"] execVM "spect\specta.sqf";
